try:
    from . import *
except ImportError:
    from __init__ import *

if __name__ == '__main__':
    np = try_import("numpy")
    print(f"{np = }")  # <module 'numpy' from ...\__init__.py'>

    try_import("some_package_from_nowhere")
